package com.zelix;

import java.io.*;
import java.util.HashSet;
import java.util.Hashtable;

abstract class r5 extends q5
        implements j5 {

    b6 o[];
    private static String z[];

    r5(kt kt1, int i, String s, jb jb1, qy qy, PrintWriter printwriter, String s1)
            throws IOException, dc {
        super(kt1, i, s, jb1, qy);
        byte abyte0[];
        jb jb2;
        abyte0 = new byte[super.m];
        jb1.read(abyte0);
        jb2 = jb.a(abyte0, false);
        int j;
        int k;
        try {
            if (super.m >= 2) {
                j = jb2.readUnsignedShort();
                o = new b6[j];
                for (k = 0; k < j; k++) {
                    o[k] = new b6(this, jb2, qy);
                    if (o[k].b())
                        continue; /* Loop/switch isn't completed */
                    super.n = false;
                    String str = i() + z[1] + s1 + z[3] + o[k].a();
                    printwriter.println(str);
                    super.j = abyte0;
                }
            } else {

                super.n = false;
                printwriter.println(i() + z[1] + s1 + z[2] + super.m);
                super.j = abyte0;
            }
        } catch (IOException ioexception) {


            super.n = false;
            printwriter.println(i() + z[1] + s1 + z[0] + ioexception);
            super.j = abyte0;
        } finally {
            jb2.close();
        }
    }

    public void b(Hashtable hashtable) {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                o[i].b(hashtable);
            }
        }
    }

    public void a(HashSet hashset, HashSet hashset1, HashSet hashset2, HashSet hashset3) {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                o[i].a(hashset, hashset1, hashset2, hashset3);
            }
        }
    }

    public final void a(HashSet hashset) {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                o[i].a(hashset);
            }
        }
    }

    public void a(Hashtable hashtable) {
        super.a(hashtable);
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                o[i].a(hashtable);
            }
        }
    }

    public void a() {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                o[i].a();
            }
        }
    }

    public void a(yg yg) {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                o[i].a(yg);
            }
        }
    }

    protected void a(DataOutputStream dataoutputstream, Hashtable hashtable, nh nh)
            throws IOException, tb {
        int i;
        super.a(dataoutputstream, hashtable, nh);
        if (super.n) {
            dataoutputstream.writeShort(o.length);
            for (i = 0; i < o.length; i++) {
                o[i].a(dataoutputstream, hashtable, nh);
            }
        } else {
            dataoutputstream.write(super.j);
        }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x64;
                    break;
                case 1:
                    key = 35;
                    break;
                case 2:
                    key = 126;
                    break;
                case 3:
                    key = 70;
                    break;
                default:
                    key = 36;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[];
        as = new String[4];
        as[0] = "DJ\rfT\013P\r/F\bZ^%K\026Q\0136PD\031^";
        as[1] = "D\031^";
        as[2] = "D\013<o\004^\003\022#J\003W\026{";
        as[3] = "D\013=o\004";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        z = as;

    }
}